package com.woniuxy.background.service;


import com.woniuxy.background.pojo.Role;

import java.util.List;

public interface RolesService {
    List<Role> findByPage(Integer currentPage, Integer pageSize);

    Role findRolesByName(String roleName);

    void saveRoles(Role role, String menuId);

    Role findRolesById(int roleId);

    boolean checkRoleName(Role role);

    void updateRoles(Role role, String menuId);

    List<Role> selectRoles();

    int deleteByPrimaryKey(Integer roleId);

    Role selectByPrimaryKey(Integer roleId);
}
